﻿using System;
using Sinacor.Servico.Bovespa.ContasCorrente.Service.DataContract.Request;
using Sinacor.Servico.Bovespa.Cliente.BusinessEntity;

namespace Sinacor.Servico.Bovespa.ContasCorrente.Service.ServiceImplementation.Translator
{
    public static class TranslateBetweenConsultarPosicaoContaCorrenteRequestAndCliente
    {
        public static Sinacor.Servico.Bovespa.ContasCorrente.Service.DataContract.Request.ConsultarPosicaoContaCorrenteRequest TranslateClienteToConsultarPosicaoContaCorrenteRequest(Sinacor.Servico.Bovespa.Cliente.BusinessEntity.Cliente from)
        {
            Sinacor.Servico.Bovespa.ContasCorrente.Service.DataContract.Request.ConsultarPosicaoContaCorrenteRequest to = new Sinacor.Servico.Bovespa.ContasCorrente.Service.DataContract.Request.ConsultarPosicaoContaCorrenteRequest();
            to.CodigoCliente = from.Codigo;
            to.Apelido = from.Apelido;
            return to;
        }

        public static Sinacor.Servico.Bovespa.Cliente.BusinessEntity.Cliente TranslateConsultarPosicaoContaCorrenteRequestToCliente(Sinacor.Servico.Bovespa.ContasCorrente.Service.DataContract.Request.ConsultarPosicaoContaCorrenteRequest from)
        {
            Sinacor.Servico.Bovespa.Cliente.BusinessEntity.Cliente to = new Sinacor.Servico.Bovespa.Cliente.BusinessEntity.Cliente();
            to.Codigo = from.CodigoCliente;
            to.Apelido = from.Apelido;
            return to;
        }
    }
}
